package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SafetyExaminationStudentWrongRecordMapper;
import com.ruoyi.system.domain.SafetyExaminationStudentWrongRecord;
import com.ruoyi.system.service.ISafetyExaminationStudentWrongRecordService;

/**
 * 学生错题记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-07
 */
@Service
public class SafetyExaminationStudentWrongRecordServiceImpl implements ISafetyExaminationStudentWrongRecordService 
{
    @Autowired
    private SafetyExaminationStudentWrongRecordMapper safetyExaminationStudentWrongRecordMapper;

    /**
     * 查询学生错题记录
     * 
     * @param id 学生错题记录ID
     * @return 学生错题记录
     */
    @Override
    public SafetyExaminationStudentWrongRecord selectSafetyExaminationStudentWrongRecordById(Long id)
    {
        return safetyExaminationStudentWrongRecordMapper.selectSafetyExaminationStudentWrongRecordById(id);
    }

    /**
     * 查询学生错题记录列表
     * 
     * @param safetyExaminationStudentWrongRecord 学生错题记录
     * @return 学生错题记录
     */
    @Override
    public List<SafetyExaminationStudentWrongRecord> selectSafetyExaminationStudentWrongRecordList(SafetyExaminationStudentWrongRecord safetyExaminationStudentWrongRecord)
    {
        return safetyExaminationStudentWrongRecordMapper.selectSafetyExaminationStudentWrongRecordList(safetyExaminationStudentWrongRecord);
    }

    /**
     * 新增学生错题记录
     * 
     * @param safetyExaminationStudentWrongRecord 学生错题记录
     * @return 结果
     */
    @Override
    public int insertSafetyExaminationStudentWrongRecord(SafetyExaminationStudentWrongRecord safetyExaminationStudentWrongRecord)
    {
        return safetyExaminationStudentWrongRecordMapper.insertSafetyExaminationStudentWrongRecord(safetyExaminationStudentWrongRecord);
    }

    /**
     * 修改学生错题记录
     * 
     * @param safetyExaminationStudentWrongRecord 学生错题记录
     * @return 结果
     */
    @Override
    public int updateSafetyExaminationStudentWrongRecord(SafetyExaminationStudentWrongRecord safetyExaminationStudentWrongRecord)
    {
        return safetyExaminationStudentWrongRecordMapper.updateSafetyExaminationStudentWrongRecord(safetyExaminationStudentWrongRecord);
    }

    /**
     * 批量删除学生错题记录
     * 
     * @param ids 需要删除的学生错题记录ID
     * @return 结果
     */
    @Override
    public int deleteSafetyExaminationStudentWrongRecordByIds(Long[] ids)
    {
        return safetyExaminationStudentWrongRecordMapper.deleteSafetyExaminationStudentWrongRecordByIds(ids);
    }

    /**
     * 删除学生错题记录信息
     * 
     * @param id 学生错题记录ID
     * @return 结果
     */
    @Override
    public int deleteSafetyExaminationStudentWrongRecordById(Long id)
    {
        return safetyExaminationStudentWrongRecordMapper.deleteSafetyExaminationStudentWrongRecordById(id);
    }
}
